package com.owc.domain.entity;

import com.owc.common.tool.DateUtils;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author xiaom
 * @Date 2020/2/28 12:35
 * @Version 1.0.0
 * @Description <>
 **/
@Data
public class OssResult implements Serializable {

    private String downloadUrl;

    private String etag;

    private String time;

    public OssResult(String downloadUrl, String etag) {
        this.downloadUrl = downloadUrl;
        this.etag = etag;
        this.time = DateUtils.formatYMDHMS(new Date());
    }
}
